/**
 * Copyright (C), 2011-2016 The Store
 * File Name: BaseEvent.java
 * Encoding: UTF-8
 * Date: Feb 28, 2012
 * History: 
 */
package com.waynewan.qcomet.event;

import java.util.Date;

/**
 *
 * @author Wayne Wan(bestirwiny@gmail.com)
 * @version Revision: 1.00 Date: Feb 28, 2012
 */
public class BaseEvent {
	private String token;
	private long timespamp ;
	private String eventName;
	
	public BaseEvent(){
	}
	
	public BaseEvent(String token, String eventName ,long timestamp){
		this.token = token;
		this.eventName = eventName;
		this.timespamp = timestamp;
	}
	
	public BaseEvent(String token, String eventName ,Date date){
		this.token = token;
		this.eventName = eventName;
		this.timespamp = date.getTime();
	}

	public long getTimespamp() {
		return timespamp;
	}

	public void setTimespamp(long timespamp) {
		this.timespamp = timespamp;
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
	
}
